<?php
use yii\helpers\Html;
use yii\helpers\Url;
use app\lib\WeixinUtils;

/* @var $this yii\web\View */
/* @var $content string 字符串 */


$imgUrl = Url::to("@web/img/wx/");
$jsUrl = Url::to("@web/js/wx/");
$basejsUrl = Url::to("@web/js/");
$cssUrl = Url::to("@web/css/wx/");
//var_dump($card);
//die;
?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>领取礼物</title>
    <link rel="stylesheet" href="<?= $cssUrl ?>receive_gift.css"/>
    <link rel="stylesheet" href="<?= $cssUrl ?>weui.css"/>
    <script src="<?= $basejsUrl ?>jquery.js"></script>
    <script src="<?=$basejsUrl?>/tools.js"></script>
    <script src="<?= $jsUrl ?>/zepto.min.js"></script>
    <script>
        $(function($){
            $('#btn_exec').click(function(){
                window.location.href="<?=Url::to(["wx-biz/good-chose"]);?>?id=<?=$card_code_id?>";
            });
        });

    </script>
</head>

<body>

<div class="main">
    <div class="top_bg">
        <div class="top_text_1">
            <img class="dlh" src="<?= $imgUrl ?>receive_gift_img/dlk.png" style="width:39px; height:46px;"/>
            <label class="text"><?=$card['VALID_DATE_MESSAGE']?></label>
            <label class="price_b" style="display: none;"><?=$card['PRICE']?></label><label class="price_a" style="display: none;">¥</label>
        </div>
        <div class="hr_div"></div>
        <div class="msg_div"> <?=$card['NAME']?></div>
        <div class="but_div_a" id="btn_exec">
            <div class="but_div_text">立即使用</div>
        </div>
    </div>
    <div class="center">
        <div class="down_text"></div>
        <div class="down_text_spliter">
        </div>
    </div>
    <div class="down">
        <?php

        foreach ($rCards as &$rCard) {
            ?>
            <div class="list">
                <div class="list_1">
                    <img class="list_head" src="<?=$rCard['HEADER_URL']?>" style="width:40px; float: left;"/>
                    <div class="list_1_1">
                        <div class="list_name"><?=$rCard['NICK_NAME']?></div>
                        <div class="list_date"><?=$rCard['CREATE_DATETIME']?></div>
                    </div>
                    <label class="list_msg">领取了一张</label>
                </div>
                <div class="hr_b_div"></div>
            </div>

            <?php
        }

        ?>
        <!-- <div class="list">
            <div class="list_1">
                <img class="list_head" src="<?/*= $imgUrl */?>receive_gift_img/head.png" style="width:40px; float: left;"/>
                <div class="list_1_1">
                    <div class="list_name">谢勋</div>
                    <div class="list_date">12-14 20:11</div>
                </div>
                <label class="list_msg">领取了一张</label>
            </div>
            <div class="hr_b_div"></div>
        -->

    </div>
</div>

</body>
</html>

